<?php

namespace App\Service\Moment\v1_1_8;

use App\Model\UserInteractMsg;
use App\Service\BaseService;

/**
 * 动态新消息数量
 */
class MomentNewMsgService extends BaseService
{
    public function handle()
    {
        $userId = $this->getUserId();
        return [
            'new_msg' => UserInteractMsg::getNewMsgNum($userId)
        ];
    }
}
